package com.lzw.wallpaper;

import android.app.*;
import android.os.*;
import android.content.res.Resources.*;
import java.io.*;
import android.content.res.*;
import android.graphics.*;
import android.widget.*;

public class MainActivity extends Activity 
{
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
		WallpaperManager wm = (WallpaperManager) getSystemService(WALLPAPER_SERVICE);
		try
		{
			wm.setBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ic_launcher));
		}
		catch (Exception e)
		{
			Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();
		}
    }
}
